package pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author zxs
 * *7 11:35
 */
@Data
@TableName("address")
public class Address {

    public static final Long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private  Integer id;;

    @NotBlank
    private  String address;
    @NotBlank
    private  String linkman;
    @NotBlank
    private  String phone;


    @TableField("user_id")
    private Integer userId;
}
